//
//  Event.h
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/23/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"

@interface Event : NSObject {
    NSInteger eventId;
    NSString *eventTitle;
    NSString *description;
    NSString *placeName;
    NSString *placeAddress;
    NSString *longitude;
    NSString *latitude;
    NSInteger eventEnd;
    NSInteger eventPasstime;
    NSInteger numberOfMembers;
    NSInteger numberOfLikes;
    NSInteger numberOfImages;
    BOOL isPrivate;
    NSString *code;
    float distance;
    User *creater;
    BOOL isJoining;
    
    NSMutableArray *photos;
    NSMutableArray *users;
}

@property (nonatomic, assign) NSInteger eventId;
@property (nonatomic, retain) NSString *eventTitle;
@property (nonatomic, retain) NSString *description;
@property (nonatomic, retain) NSString *placeName;
@property (nonatomic, retain) NSString *placeAddress;
@property (nonatomic, retain) NSString *longitude;
@property (nonatomic, retain) NSString *latitude;
@property (nonatomic, assign) NSInteger eventEnd;
@property (nonatomic, assign) NSInteger eventPasstime;
@property (nonatomic, assign) NSInteger numberOfMembers;
@property (nonatomic, assign) NSInteger numberOfLikes;
@property (nonatomic, assign) NSInteger numberOfImages;
@property (nonatomic, assign) BOOL isPrivate;
@property (nonatomic, retain) NSString *code;
@property (nonatomic, assign) float distance;
@property (nonatomic, retain) User *creater;
@property (nonatomic, assign) BOOL isJoining;
@property (nonatomic, retain) NSMutableArray *photos;
@property (nonatomic, retain) NSMutableArray *users;

@end
